package com.library.DocuSize.service.impl;

import com.library.DocuSize.mapper.DocuSizeMapper;
import com.library.DocuSize.model.DocuSize;
import com.library.DocuSize.model.DocuSizeExample;
import com.library.DocuSize.service.DocuSizeService;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DocuSizeServiceImpl implements DocuSizeService {
    
    private DocuSizeMapper docuSizeMapper;

    //通过构造函数注入mapper
    @Autowired
    public DocuSizeServiceImpl(DocuSizeMapper docuSizeMapper) {
        this.docuSizeMapper = docuSizeMapper;
    }

    public long countByExample(DocuSizeExample example) {
        return docuSizeMapper.countByExample(example);
    }

    public int deleteByExample(DocuSizeExample example) {
        return docuSizeMapper.deleteByExample(example);
    }

    public int deleteByPrimaryKey(Integer id) {
        return docuSizeMapper.deleteByPrimaryKey(id);
    }

    public int insert(DocuSize record) {
        return docuSizeMapper.insert(record);
    }

    public int insertSelective(DocuSize record) {
        return docuSizeMapper.insertSelective(record);
    }

    public List<DocuSize> selectByExample(DocuSizeExample example) {
        return docuSizeMapper.selectByExample(example);
    }

    public DocuSize selectByPrimaryKey(Integer id) {
        return docuSizeMapper.selectByPrimaryKey(id);
    }

    public int updateByExampleSelective(@Param("record") DocuSize record, @Param("example") DocuSizeExample example) {
        return docuSizeMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(@Param("record") DocuSize record, @Param("example") DocuSizeExample example) {
        return docuSizeMapper.updateByExample(record, example);
    }

    public int updateByPrimaryKeySelective(DocuSize record) {
        return docuSizeMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(DocuSize record) {
        return docuSizeMapper.updateByPrimaryKey(record);
    }
}